<%@page import="classes.User"%>
<%@page import="classes.AccountManager"%>
<%@page import="classes.SubjectManager"%>
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
	pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
	<%
		int lecturer_id = Integer.parseInt(request
				.getParameter("lecturer_id"));
		AccountManager amanager = (AccountManager) getServletContext()
				.getAttribute(AccountManager.ACCOUNTMANAGER);
		String lecturer_username = AccountManager.getUsername(lecturer_id);
		User user = amanager.getUser(lecturer_username);
	%>
		
		<img src="<%=user.getPic() %>" alt="Photo"/ width="400" height="300">
		<h2><p>Name: <%=user.getName() %></p></h2>
		<h2><p>Surname:<%=user.getSurName() %></p></h2>
		<h2><p>User Info: <%=user.getInfo() %></p></h2>

</body>
</html>